#include <QCoreApplication>
#include <iostream>
#include <cmath>
using namespace std;

int main(int argc, char *argv[])
{
    QCoreApplication w(argc, argv);
    //Integer5
        int t=0;
        int a;
        int b;
        do
        {
        if(t>0)
        cout<<"Error, a<b!"<<endl;
        cout<<"Enter A: ";
        cin>>a;
        cout<<"Enter B: ";
        cin>>b;
        t++;
        }
        while(a<=b);
        cout<<"Residue: "<<a%b<<endl<<endl;

    return w.exec();
}
